package com.fintech.third.edczxutil.style;

import java.util.ArrayList;
import java.util.List;

public class Style {

	private String id;
	
	private String name;
	
	private String bean;
	
	private List<StyleElement> elements;
	
	public void addEleament(StyleElement eleament){
		if(this.elements==null){
			elements=new ArrayList<>();
		}
		this.elements.add(eleament);
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getBean() {
		return bean;
	}

	public void setBean(String bean) {
		this.bean = bean;
	}

	public List<StyleElement> getElements() {
		return elements;
	}

	public void setElements(List<StyleElement> elements) {
		this.elements = elements;
	}

	@Override
	public String toString() {
		return "Style [id=" + id + ", name=" + name + ", bean=" + bean + ", elements=" + elements + "]";
	}

}
